<template>
    <div class="homeContainer">
        <div class="guideList">
            <router-link to="/home/news">news</router-link>
            <router-link to="/home/message">message</router-link>
        </div>
        <div class="content">
            <!-- 这里include写的是组件名 -->
            <keep-alive include="News">
                <router-view></router-view>
            </keep-alive>
        </div>
    </div>
</template>

<script>
export default {
    name: "Home",
};
</script>

<style scoped>
.homeContainer {
    width: 100%;
    height: 100%;
}

.guideList {
    width: 100%;
    height: 20%;
    display: flex;
    justify-content: space-around;
}

.guideList > a {
    width: 50%;
    text-decoration: none;
    font-size: 20px;
    text-align: center;
    border: 1px solid grey;
}

.content {
    width: 100%;
    height: 80%;
}
</style>
